<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id 
 * @property int $game_id 关联赛事ID
 * @property int $sport_id 关联赛事类型
 * @property int $parentid 上级栏目ID
 * @property string $catname 分类名称
 * @property string $catdir 分类目录
 * @property string $letter 
 * @property string $parentdir 
 * @property string $keywords 关键词
 * @property string $description 介绍
 * @property string $arrparentid 
 * @property string $arrchildid 
 * @property int $child 
 * @property string $url URL
 * @property int $listorder 排序
 * @property int $add_time 添加时间
 */
class Category extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'category';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'game_id', 'sport_id', 'parentid', 'catname', 'catdir', 'letter', 'parentdir', 'keywords', 'description', 'arrparentid', 'arrchildid', 'child', 'url', 'listorder', 'add_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'game_id' => 'integer', 'sport_id' => 'integer', 'parentid' => 'integer', 'child' => 'integer', 'listorder' => 'integer', 'add_time' => 'integer'];
}
